function chk(strURL)
{
	if(confirm(Dictionary.translate('lang_check_want_to_delete'))) document.location=strURL;
}

function CheckAllBoxes()
{
	for (var i=0;i<document.checkbox_form.elements.length;i++)
	{
		var e = document.checkbox_form.elements[i];
		if (e.type=='checkbox')
			e.checked = document.check_all.elements['group'].checked;
	}
}
function CheckFill()
{
	for(var i=0;i<document.checkbox_form.elements.length;i++)
		if(document.checkbox_form.elements[i].checked=='1')
		{
			if(confirm(Dictionary.translate('lang_check_want_to_delete_group'))) return true;
			return false;
		}
	alert(Dictionary.translate('lang_check_no_selected'));
	return false;
}
function CheckFillForMove()
{
	for(var i=0;i<document.checkbox_form.elements.length;i++)
		if(document.checkbox_form.elements[i].checked=='1')
		{
			if(confirm(Dictionary.translate('lang_check_want_to_move_group'))) return true;
			return false;
		}
	alert(Dictionary.translate('lang_check_no_selected'));
	return false;
}
function CheckFillPage()
{
	if(document.checkbox_form.Caction.value!="gmove")return CheckFill();
	else return CheckFillForMove();
}